package org.springblade.modules.admin.vo.check;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.modules.admin.entity.MaintainMalfunctionHistory;
import org.springblade.modules.admin.enums.MaintainPlanContentEnum;

import java.util.Date;

/**
 * @author zcc
 * @version 1.0
 * @date 2023/12/1 14:25
 */
@Data
public class ProblemPlanVo extends MaintainMalfunctionHistory {

	private Long checkPlanId;

	private String buildingName;

	@ApiModelProperty("电梯地址")
	private String elevatorAddress;

	@ApiModelProperty("完成时间")
	private Date planEndTime;


	@ApiModelProperty("工单类型")
	private String typeStatusName;

	@ApiModelProperty("工单类型名称")
	private Integer typeStatus;

	@ApiModelProperty("工单状态")
	private Integer planStatus;

	@ApiModelProperty("工单状态")
	private Integer childTypeStatus;

	@ApiModelProperty("工单状态名称")
	private String planStatusName;

	private String createUserName;

	public void setTypeStatus(Integer typeStatus) {
		this.typeStatus = typeStatus;
		this.typeStatusName = MaintainPlanContentEnum.getName(typeStatus);
	}
}
